<template>
  <div>
    <div class="header">
      <div class="header-left"
        @click="$router.go(-1)">
        <span class="iconfont qn-incon-zzarrow-left"></span>
      </div>
      <div class="header-title">城市选择</div>
    </div>
    <div class="g-choose">
      <div class="g-all">
        <router-link to="/city/in" class="g-in">
          境内
        </router-link>
        <router-link to="/city/out" class="g-out">
          境外·港澳台
        </router-link>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'CityHeader'
}
</script>

<style lang="scss" scoped>
@import "~styles/variable.scss";

.header {
  overflow: hidden;
  height: .68rem;
  line-height: .88rem;
  background: $bgColor;
  color: #fff;
  text-align: center;
  font-size: .3rem;
  .header-left {
    float: left;
    width: .8rem;
    color: #fff;
  }
  .header-title {
    margin: 0 1rem;
  }
}
.g-choose {
  height: .8rem;
  line-height: .8rem;
  padding: 0 .1rem;
  background: $bgColor;
  color: #fff;
  margin: 0 auto;
  display: flex;
  align-items: center;
  .g-all {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    width: 100%;
    height: .36rem;
    line-height: .36rem;
    font-size: .26rem;
    text-align: center;
    border: 1px solid #fff;
    border-radius: .1rem;
    .g-in {
      width: 50%;
      background: #fff;
      color: $bgColor;
    }
    .g-out {
      width: 50%;
      color: #fff;
    }
  }
}
</style>
